#ifndef _WEB_SERACH_SERVER_
#define _WEB_SERACH_SERVER_

#include "TcpConnection.h"
#include "WebPageQuery.h"

using TcpConnectionPtr = shared_ptr<TcpConnection>;
class WebPageSearcher {
  public:
    WebPageSearcher(const string &query, const TcpConnectionPtr &);
    void start();

  private:
    string _queryWord;      // 传入的字符串
    TcpConnectionPtr _conn; // 传入的tcp连接
};

#endif